package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {

    //圈子-发布动态
    void publishMovement(Movement movement);
    //查询个人动态
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);
    //查询好友动态
    List<Movement> findFriendMovements(Long userId, Integer page, Integer pagesize);
    //随机获取多条动态数据
    List<Movement> randomMovements(Integer counts);
    //根据pid数组查询动态数据
    List<Movement> findMovementsByPids(List<Long> pids);
    //根据动态id查询
    Movement findById(String movementId);
}
